package com.flymobi.fw.orm;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 
 * 
 * Title:
 * 
 * Description:
 * 
 * Copyright: Copyright (c) 2008
 * 
 * @author haoxz11
 * @created Mar 7, 2008 11:54:16 AM
 * @version $Id: Persistent.java,v 1.1 2008/03/26 06:24:11 airsou Exp $
 */
public abstract class Persistent {

	/**
	 * Comment for <code>serialVersionUID</code>
	 */
	transient private static final long serialVersionUID = 1L;
	protected String beizhu;
	protected Long delstate;
	protected Long id;

	protected Date savetime;

	protected Date updatetime;

	/**
	 * @return the beizhu
	 */
	public String getBeizhu() {
		return beizhu;
	}

	/**
	 * @return the delstate
	 */
	public Long getDelstate() {
		return delstate;
	}
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	public Date getSavetime() {
		return savetime;
	}

	/**
	 * @return the updatetime
	 */
	public Date getUpdatetime() {
		return updatetime;
	}

	/**
	 * @param beizhu the beizhu to set
	 */
	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}

	/**
	 * @param delstate the delstate to set
	 */
	public void setDelstate(Long delstate) {
		this.delstate = delstate;
	}

	/**
	 * @param id
	 *            The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}

	public void setSavetime(Date savetime) {
		this.savetime = savetime;
	}

	/**
	 * @param updatetime the updatetime to set
	 */
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE).toString();
	}
}
